// 公共变量
$bgColor: #f2f3f4;
$fontColor: #2E3030;

// 增加旋转效果
@keyframes rotate {
  0% {
    transform: rotate(0);
  }
  100%{
    transform: rotate(360deg);
  }
}
.miniPlay {
  display: flex;
  align-items: center;
  width: 100%;
  height: 60px;
  background: #fff;
  padding: 0 10px 0 20px;
  justify-content: space-between;
  .console{
    display: flex;
    align-items: center;
    div:first-child{
      margin-right: 6px;
    }
  }
  .icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    img{
      border-radius: 50%;
      &.play {
        animation: rotate 10s ease-in infinite;
      }
      &.pause {
        animation-play-state: paused;
      }
    }
  }
  .text{
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    line-height: 20px;
    overflow: hidden;
    .name{
      margin-bottom: 2px;
      font-size: 14px;
      color: #2E3030;
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
    }
    .desc {
      font-size: 12px;
      color: #bba8a8;
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
    }
  }
  .van-circle{
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
// 正常打下的播放器
.normalPlayerContainer{
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 99;
  background: #f2f3f4;
  .background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
    filter: blur(20px); // 滤镜
    background: #000;
    &.layer {
      background: $fontColor;
      opacity: 0.3;
      filter: none;
    }
    
  }

  .van-nav-bar::after{
    border-bottom: none;
  }
}

.fullScreenPage{
  position: relative;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.3);
  @keyframes cd {
    0% {
      transform: rotate(0);
    }
    100%{
      transform: rotate(360deg);
    }
  }
  .cd{
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -35%);
    width: 340px;
    height: 340px;
    .play {
      animation: cd 20s linear infinite;
      &.pause {
        animation-play-state: paused;
      }
    }
    img{
      width: 100%;
      height: 100%;
      border-radius: 50%;
      border: 10px solid rgba(255,255,255,0.1)
    }
  }
  .layer{
    background: url(http://p3.music.126.net/zyM2NUWMH43vrcObVVF8Hg==/109951164808458773.jpg) 0 0 no-repeat;
    background-size: 100% 100%;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
    filter: blur(20px);
  }
  .van-nav-bar{
    background-color: transparent !important;
    .van-nav-bar__title{
      color: #2e3030;
    }
  }
  .subtitle{
    line-height: 20px;
    text-align: center;
    font-size: 14px;
    color: #bba8a8;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
  .progressBox{
    display: flex;
    align-items: center;
    width: 80%;
    margin: 0 auto;
    padding: 10px 0;
    .time{
      color: #2E3030;
      font-size: 12px;
      flex: 0 0 30px;
      line-height: 30px;
      width: 36px;
      &.l{
        margin-right: 12px;
      }
      &.r{
        margin-left: 12px;
      }
    }
  }
  .controls{
    display: flex;
    align-items: center;
    width: 80%;
    margin: 0 auto;
    justify-content: space-between;
  }
  .iconSize{
    width: 30px;
    height: 30px;
    img{
      width: 100%;
      height: 100%;
    }
  }
  .pageBottom{
    position: absolute;
    bottom: 5%;
    left: 0;
    width: 100%;
    z-index: 9;
  }

}